﻿using System;
using System.Reflection;
using Ingr.SP3D.Common.Middle.Services;

namespace Ingr.SP3D.Content
{
    internal static class CommonSymbolFunctionLoader
    {
        /// <summary>
        /// 加载这个dll
        /// </summary>
        static internal void Load()
        {
            if (MiddleServiceProvider.SiteMgr.ActiveSite != null && MiddleServiceProvider.SiteMgr.ActiveSite.ActivePlant != null)
            {
                Assembly.LoadFile(MiddleServiceProvider.SiteMgr.ActiveSite.ActivePlant.PlantCatalog.SymbolShare + @"\Custom Symbols\CommonSymbolFunctions.dll");
            }
        }
    }
}
